package com.example.threadpool.runnable;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.Callable;

/**
 * @ClassName Test
 * @Description
 * @Author huyingliang
 * @Date 2024-02-04 15:56
 */
public class Test implements Callable<String> {

    @Override
    public String call() throws Exception {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("当前时间：yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(new Date());

    }
}
